<?php echo CYui::init(true, true); ?>
<h2>LightBox Demo</h2>
<br><br>
    <div>
        <?php echo CYui::lightboxGallery('lb1', CYui::buildImagesListFromPath('images/gallery2009'), true, true, true, true); ?>
    </div>
<table>
<tr>
<td><img src="/images/gallery2009/1.jpg" id="image1" width="75%" height="75%"/></td>
<td><img src="/images/gallery2009/2.jpg" id="image2" width="75%" height="75%"/></td>
<td><img src="/images/gallery2009/3.jpg" id="image3" width="75%" height="75%"/></td>
</tr>
<tr>
<td><img src="/images/gallery2009/4.jpg" id="image4" width="75%" height="75%"/></td>
<td><img src="/images/gallery2009/5.jpg" id="image5" width="75%" height="75%"/></td>
<td><img src="/images/gallery2009/1.jpg" id="image6" width="75%" height="75%"/></td>
</tr>
</table>
<br><br>
<?php 
    echo CHtml::button('LightBox test', array('id'=>'btn1'));
    echo CYui::lightboxAttachTo('btn1', CYui::buildImagesListFromPath('images/gallery2009'), true);
?>
<br><br>
<table class="dataGrid">
    <tr>
        <th colspan="4"><h3>lightboxGallery</h3></th>
    </tr>
    <tr>
        <th>Param</th>
        <th>Type</th>
        <th>Description</th>
        <th>Required / default</th>
    </tr>
    <tr>
        <td><b>$id</b></td>
        <td>string</td>
        <td>DOM name</td>
        <td align="center">+</td>
    </tr>
    <tr>
        <td><b>$images</b></td>
        <td>array</td>
        <td>use buildImagesListFromPath($imagesPath)</td>
        <td align="center">+</td>
    </tr>
    <tr>
        <td><b>$ctrlVisible</b></td>
        <td>boolean</td>
        <td>Is control visible</td>
        <td align="center">true</td>
    </tr>
    <tr>
        <td><b>$tooltipVisible</b></td>
        <td>boolean</td>
        <td>Is tool tip visible</td>
        <td align="center">false</td>
    </tr>
    <tr>
        <td><b>$modal</b></td>
        <td>boolean</td>
        <td>show as modal window</td>
        <td align="center">true</td>
    </tr>
    <tr>
        <td><b>$hasThumbnails</b></td>
        <td>boolean</td>
        <td>has thumbnails</td>
        <td align="center">true</td>
    </tr>
    <tr>
        <td colspan="4" align="center">
            <?php echo CYui::codeHighlight(' echo CYui::lightboxGallery(`lb1`, CYui::buildImagesListFromPath(`images/gallery2009`), true, true, true, true);', 'php'); ?>
        </td>
    </tr>
</table>
<br>
<table class="dataGrid">
    <tr>
        <th colspan="4"><h3>lightboxAttachTo</h3></th>
    </tr>
    <tr>
        <th>Param</th>
        <th>Type</th>
        <th>Description</th>
        <th>Required / default</th>
    </tr>
    <tr>
        <td><b>$htmlId</b></td>
        <td>string</td>
        <td>DOM name to attach lightbox</td>
        <td align="center">+</td>
    </tr>
    <tr>
        <td><b>$images</b></td>
        <td>array</td>
        <td>use buildImagesListFromPath($imagesPath)</td>
        <td align="center">+</td>
    </tr>
    <tr>
        <td><b>$ctrlVisible</b></td>
        <td>boolean</td>
        <td>Is control visible</td>
        <td align="center">true</td>
    </tr>
    <tr>
        <td><b>$tooltipVisible</b></td>
        <td>boolean</td>
        <td>Is tool tip visible</td>
        <td align="center">false</td>
    </tr>
    <tr>
        <td><b>$modal</b></td>
        <td>boolean</td>
        <td>show as modal window</td>
        <td align="center">true</td>
    </tr>
    <tr>
        <td colspan="4" align="center">
            <?php echo CYui::codeHighlight(' echo CHtml::button(`LightBox test`, array(`id`=>`btn1`));
    echo CYui::lightboxAttachTo(`btn1`, CYui::buildImagesListFromPath(`images/gallery2009`), true);', 'php'); ?>
        </td>
    </tr>
</table>